.class public Lcom/instagram/creation/video/f/ae;
.super Lcom/instagram/creation/video/f/ab;
.source "VideoImportFragment.java"

# interfaces
.implements Lcom/instagram/creation/video/d/c;
.implements Lcom/instagram/creation/video/ui/c;
.implements Lcom/instagram/creation/video/ui/d;
.implements Lcom/instagram/creation/video/ui/u;


# annotations
.annotation build Landroid/annotation/TargetApi;
    value = 0xe
.end annotation


# instance fields
.field private Z:Landroid/view/View;

.field a:[D

.field private aa:Landroid/view/animation/Animation;

.field private ab:Landroid/view/animation/Animation;

.field private ac:I

.field private ad:Landroid/widget/RelativeLayout$LayoutParams;

.field private ae:Lcom/instagram/creation/video/ui/TrimHandleImageView;

.field private af:Z

.field private ag:D

.field private ah:D

.field private ai:Ljava/io/File;

.field private aj:J

.field private ak:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Landroid/media/MediaMetadataRetriever;",
            ">;"
        }
    .end annotation
.end field

.field private al:Lcom/instagram/pendingmedia/model/c;

.field private am:Lcom/instagram/pendingmedia/model/a;

.field private an:Ljava/util/concurrent/ThreadPoolExecutor;

.field private final ao:Landroid/os/Handler;

.field private ap:Lcom/instagram/creation/video/d/a;

.field private aq:Lcom/instagram/creation/video/ui/a/a;

.field private b:Lcom/instagram/creation/video/ui/LivePreviewTextureView;

.field private c:Landroid/widget/LinearLayout;

.field private d:Lcom/instagram/creation/video/ui/FilmstripScrollView;

.field private e:Landroid/view/View;

.field private f:Landroid/view/View;

.field private g:Landroid/view/View;

.field private h:I

.field private i:Lcom/instagram/creation/video/ui/w;


# direct methods
.method public constructor <init>()V
    .locals 7

    .prologue
    const/4 v1, 0x1

    .line 70
    invoke-direct {p0}, Lcom/instagram/creation/video/f/ab;-><init>()V

    .line 112
    const/4 v0, 0x0

    new-array v0, v0, [D

    iput-object v0, p0, Lcom/instagram/creation/video/f/ae;->a:[D

    .line 113
    new-instance v0, Ljava/util/concurrent/ThreadPoolExecutor;

    const-wide/16 v3, 0x0

    sget-object v5, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;

    new-instance v6, Ljava/util/concurrent/LinkedBlockingQueue;

    invoke-direct {v6}, Ljava/util/concurrent/LinkedBlockingQueue;-><init>()V

    move v2, v1

    invoke-direct/range {v0 .. v6}, Ljava/util/concurrent/ThreadPoolExecutor;-><init>(IIJLjava/util/concurrent/TimeUnit;Ljava/util/concurrent/BlockingQueue;)V

    iput-object v0, p0, Lcom/instagram/creation/video/f/ae;->an:Ljava/util/concurrent/ThreadPoolExecutor;

    .line 120
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lcom/instagram/creation/video/f/ae;->ao:Landroid/os/Handler;

    .line 823
    return-void
.end method

.method private a(Landroid/graphics/Bitmap;II)Landroid/graphics/Bitmap;
    .locals 9
    .parameter
    .parameter
    .parameter

    .prologue
    const/4 v8, 0x3

    const/4 v7, 0x2

    const/4 v6, 0x1

    const/4 v4, 0x0

    const/4 v5, 0x0

    .line 408
    iget v0, p0, Lcom/instagram/creation/video/f/ae;->h:I

    .line 409
    iget-wide v1, p0, Lcom/instagram/creation/video/f/ae;->ah:D

    double-to-int v1, v1

    iget-wide v2, p0, Lcom/instagram/creation/video/f/ae;->ag:D

    double-to-int v2, v2

    invoke-static {p1, v1, v2}, Lcom/instagram/n/a/a;->b(Landroid/graphics/Bitmap;II)Landroid/graphics/Bitmap;

    move-result-object v1

    .line 414
    if-nez p2, :cond_0

    .line 415
    const/16 v2, 0x8

    new-array v2, v2, [F

    int-to-float v3, v0

    aput v3, v2, v4

    int-to-float v3, v0

    aput v3, v2, v6

    aput v5, v2, v7

    aput v5, v2, v8

    const/4 v3, 0x4

    aput v5, v2, v3

    const/4 v3, 0x5

    aput v5, v2, v3

    const/4 v3, 0x6

    int-to-float v4, v0

    aput v4, v2, v3

    const/4 v3, 0x7

    int-to-float v0, v0

    aput v0, v2, v3

    invoke-static {v1, v2}, Lcom/instagram/n/a/a;->a(Landroid/graphics/Bitmap;[F)Landroid/graphics/Bitmap;

    move-result-object v0

    .line 419
    invoke-virtual {v1}, Landroid/graphics/Bitmap;->recycle()V

    .line 429
    :goto_0
    return-object v0

    .line 421
    :cond_0
    add-int/lit8 v2, p3, -0x1

    if-ne p2, v2, :cond_1

    .line 422
    const/16 v2, 0x8

    new-array v2, v2, [F

    aput v5, v2, v4

    aput v5, v2, v6

    int-to-float v3, v0

    aput v3, v2, v7

    int-to-float v3, v0

    aput v3, v2, v8

    const/4 v3, 0x4

    int-to-float v4, v0

    aput v4, v2, v3

    const/4 v3, 0x5

    int-to-float v0, v0

    aput v0, v2, v3

    const/4 v0, 0x6

    aput v5, v2, v0

    const/4 v0, 0x7

    aput v5, v2, v0

    invoke-static {v1, v2}, Lcom/instagram/n/a/a;->a(Landroid/graphics/Bitmap;[F)Landroid/graphics/Bitmap;

    move-result-object v0

    .line 426
    invoke-virtual {v1}, Landroid/graphics/Bitmap;->recycle()V

    goto :goto_0

    :cond_1
    move-object v0, v1

    .line 429
    goto :goto_0
.end method

.method static synthetic a(Lcom/instagram/creation/video/f/ae;)Lcom/instagram/creation/video/ui/TrimHandleImageView;
    .locals 1
    .parameter

    .prologue
    .line 70
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->ae:Lcom/instagram/creation/video/ui/TrimHandleImageView;

    return-object v0
.end method

.method static synthetic a(Lcom/instagram/creation/video/f/ae;Lcom/instagram/pendingmedia/model/c;)Lcom/instagram/pendingmedia/model/c;
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 70
    iput-object p1, p0, Lcom/instagram/creation/video/f/ae;->al:Lcom/instagram/pendingmedia/model/c;

    return-object p1
.end method

.method private a(F)V
    .locals 1
    .parameter

    .prologue
    .line 852
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->am:Lcom/instagram/pendingmedia/model/a;

    invoke-virtual {v0, p1}, Lcom/instagram/pendingmedia/model/a;->a(F)Lcom/instagram/pendingmedia/model/a;

    .line 853
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->ap:Lcom/instagram/creation/video/d/a;

    invoke-virtual {v0}, Lcom/instagram/creation/video/d/a;->e()V

    .line 854
    return-void
.end method

.method private a(II)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 458
    if-ge p1, p2, :cond_0

    .line 459
    :goto_0
    if-gt p1, p2, :cond_1

    .line 460
    invoke-direct {p0, p1}, Lcom/instagram/creation/video/f/ae;->f(I)V

    .line 459
    add-int/lit8 p1, p1, 0x1

    goto :goto_0

    .line 463
    :cond_0
    :goto_1
    if-lt p2, p1, :cond_1

    .line 464
    invoke-direct {p0, p2}, Lcom/instagram/creation/video/f/ae;->f(I)V

    .line 463
    add-int/lit8 p2, p2, -0x1

    goto :goto_1

    .line 467
    :cond_1
    return-void
.end method

.method private a(Landroid/widget/ImageView;I)V
    .locals 7
    .parameter
    .parameter

    .prologue
    .line 433
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v5

    .line 434
    const-wide v0, 0x412e848000000000L

    iget-object v2, p0, Lcom/instagram/creation/video/f/ae;->a:[D

    aget-wide v2, v2, p2

    mul-double/2addr v0, v2

    double-to-int v0, v0

    int-to-long v1, v0

    .line 436
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->ak:Ljava/util/List;

    rem-int/lit8 v3, p2, 0x1

    invoke-interface {v0, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/media/MediaMetadataRetriever;

    .line 438
    const/4 v3, 0x2

    invoke-virtual {v0, v1, v2, v3}, Landroid/media/MediaMetadataRetriever;->getFrameAtTime(JI)Landroid/graphics/Bitmap;

    move-result-object v0

    .line 442
    if-eqz v0, :cond_0

    .line 443
    iget-object v1, p0, Lcom/instagram/creation/video/f/ae;->a:[D

    array-length v1, v1

    invoke-direct {p0, v0, p2, v1}, Lcom/instagram/creation/video/f/ae;->a(Landroid/graphics/Bitmap;II)Landroid/graphics/Bitmap;

    move-result-object v3

    .line 444
    invoke-virtual {v0}, Landroid/graphics/Bitmap;->recycle()V

    .line 446
    new-instance v0, Lcom/instagram/creation/video/f/ai;

    move-object v1, p0

    move-object v2, p1

    move v4, p2

    invoke-direct/range {v0 .. v6}, Lcom/instagram/creation/video/f/ai;-><init>(Lcom/instagram/creation/video/f/ae;Landroid/widget/ImageView;Landroid/graphics/Bitmap;IJ)V

    invoke-virtual {p1, v0}, Landroid/widget/ImageView;->post(Ljava/lang/Runnable;)Z

    .line 455
    :cond_0
    return-void
.end method

.method static synthetic a(Lcom/instagram/creation/video/f/ae;F)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 70
    invoke-direct {p0, p1}, Lcom/instagram/creation/video/f/ae;->a(F)V

    return-void
.end method

.method static synthetic a(Lcom/instagram/creation/video/f/ae;Landroid/widget/ImageView;I)V
    .locals 0
    .parameter
    .parameter
    .parameter

    .prologue
    .line 70
    invoke-direct {p0, p1, p2}, Lcom/instagram/creation/video/f/ae;->a(Landroid/widget/ImageView;I)V

    return-void
.end method

.method static synthetic a(Lcom/instagram/creation/video/f/ae;Lcom/instagram/creation/video/f/an;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 70
    invoke-direct {p0, p1}, Lcom/instagram/creation/video/f/ae;->a(Lcom/instagram/creation/video/f/an;)V

    return-void
.end method

.method private a(Lcom/instagram/creation/video/f/an;)V
    .locals 8
    .parameter

    .prologue
    const/4 v6, 0x0

    .line 509
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->an:Ljava/util/concurrent/ThreadPoolExecutor;

    invoke-virtual {v0}, Ljava/util/concurrent/ThreadPoolExecutor;->getQueue()Ljava/util/concurrent/BlockingQueue;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/concurrent/BlockingQueue;->clear()V

    .line 511
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->c:Landroid/widget/LinearLayout;

    invoke-virtual {v0}, Landroid/widget/LinearLayout;->getChildCount()I

    move-result v0

    .line 513
    iget-object v1, p0, Lcom/instagram/creation/video/f/ae;->d:Lcom/instagram/creation/video/ui/FilmstripScrollView;

    invoke-virtual {v1}, Lcom/instagram/creation/video/ui/FilmstripScrollView;->getWidth()I

    move-result v1

    int-to-double v1, v1

    iget-wide v3, p0, Lcom/instagram/creation/video/f/ae;->ah:D

    div-double/2addr v1, v3

    double-to-int v1, v1

    add-int/lit8 v1, v1, 0x1

    .line 514
    iget-object v2, p0, Lcom/instagram/creation/video/f/ae;->d:Lcom/instagram/creation/video/ui/FilmstripScrollView;

    invoke-virtual {v2}, Lcom/instagram/creation/video/ui/FilmstripScrollView;->getScrollX()I

    move-result v2

    int-to-double v2, v2

    iget-wide v4, p0, Lcom/instagram/creation/video/f/ae;->ah:D

    div-double/2addr v2, v4

    double-to-int v2, v2

    .line 515
    add-int v3, v2, v1

    invoke-static {v0, v3}, Ljava/lang/Math;->min(II)I

    move-result v3

    .line 518
    add-int/lit8 v4, v2, -0x1

    sub-int/2addr v4, v1

    invoke-static {v6, v4}, Ljava/lang/Math;->max(II)I

    move-result v4

    .line 519
    add-int/lit8 v5, v2, -0x1

    invoke-static {v6, v5}, Ljava/lang/Math;->max(II)I

    move-result v5

    .line 521
    add-int/lit8 v6, v3, 0x1

    invoke-static {v6, v0}, Ljava/lang/Math;->min(II)I

    move-result v6

    .line 522
    add-int/lit8 v7, v3, 0x1

    add-int/2addr v1, v7

    invoke-static {v1, v0}, Ljava/lang/Math;->min(II)I

    move-result v0

    .line 525
    invoke-direct {p0, v2, v3}, Lcom/instagram/creation/video/f/ae;->a(II)V

    .line 528
    sget-object v1, Lcom/instagram/creation/video/f/an;->b:Lcom/instagram/creation/video/f/an;

    if-ne p1, v1, :cond_0

    .line 529
    invoke-direct {p0, v6, v0}, Lcom/instagram/creation/video/f/ae;->a(II)V

    .line 530
    invoke-direct {p0, v5, v4}, Lcom/instagram/creation/video/f/ae;->a(II)V

    .line 535
    :goto_0
    return-void

    .line 532
    :cond_0
    invoke-direct {p0, v5, v4}, Lcom/instagram/creation/video/f/ae;->a(II)V

    .line 533
    invoke-direct {p0, v6, v0}, Lcom/instagram/creation/video/f/ae;->a(II)V

    goto :goto_0
.end method

.method private a(Lcom/instagram/creation/video/ui/x;III)V
    .locals 4
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    .line 807
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->i:Lcom/instagram/creation/video/ui/w;

    if-nez v0, :cond_0

    .line 808
    new-instance v0, Lcom/instagram/creation/video/ui/w;

    invoke-virtual {p0}, Lcom/instagram/creation/video/f/ae;->j()Landroid/support/v4/app/j;

    move-result-object v1

    invoke-direct {v0, v1, p1}, Lcom/instagram/creation/video/ui/w;-><init>(Landroid/content/Context;Lcom/instagram/creation/video/ui/x;)V

    iput-object v0, p0, Lcom/instagram/creation/video/f/ae;->i:Lcom/instagram/creation/video/ui/w;

    .line 810
    :cond_0
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->i:Lcom/instagram/creation/video/ui/w;

    invoke-virtual {v0}, Lcom/instagram/creation/video/ui/w;->isShowing()Z

    move-result v0

    if-nez v0, :cond_1

    .line 811
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/ae;->v()Landroid/view/View;

    move-result-object v0

    sget v1, Lcom/facebook/aw;->import_root:I

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    .line 812
    iget-object v1, p0, Lcom/instagram/creation/video/f/ae;->i:Lcom/instagram/creation/video/ui/w;

    sget v2, Lcom/facebook/bb;->Camcorder_Popup:I

    invoke-virtual {v1, v2}, Lcom/instagram/creation/video/ui/w;->setAnimationStyle(I)V

    .line 813
    iget-object v1, p0, Lcom/instagram/creation/video/f/ae;->i:Lcom/instagram/creation/video/ui/w;

    invoke-virtual {v1, v0, p2, p3, p4}, Lcom/instagram/creation/video/ui/w;->showAtLocation(Landroid/view/View;III)V

    .line 814
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->ao:Landroid/os/Handler;

    new-instance v1, Lcom/instagram/creation/video/f/ak;

    invoke-direct {v1, p0}, Lcom/instagram/creation/video/f/ak;-><init>(Lcom/instagram/creation/video/f/ae;)V

    const-wide/16 v2, 0x7d0

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 821
    :cond_1
    return-void
.end method

.method static synthetic a(Lcom/instagram/creation/video/f/ae;Z)Z
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 70
    iput-boolean p1, p0, Lcom/instagram/creation/video/f/ae;->af:Z

    return p1
.end method

.method private ac()V
    .locals 5

    .prologue
    const/4 v4, 0x0

    .line 156
    new-instance v0, Lcom/instagram/pendingmedia/model/a;

    invoke-direct {v0}, Lcom/instagram/pendingmedia/model/a;-><init>()V

    iput-object v0, p0, Lcom/instagram/creation/video/f/ae;->am:Lcom/instagram/pendingmedia/model/a;

    .line 157
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->am:Lcom/instagram/pendingmedia/model/a;

    iget-object v1, p0, Lcom/instagram/creation/video/f/ae;->ai:Ljava/io/File;

    invoke-virtual {v1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/instagram/pendingmedia/model/a;->a(Ljava/lang/String;)Lcom/instagram/pendingmedia/model/a;

    .line 158
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->am:Lcom/instagram/pendingmedia/model/a;

    invoke-virtual {v0, v4}, Lcom/instagram/pendingmedia/model/a;->c(I)Lcom/instagram/pendingmedia/model/a;

    .line 159
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->am:Lcom/instagram/pendingmedia/model/a;

    const/16 v1, 0x3a98

    iget-wide v2, p0, Lcom/instagram/creation/video/f/ae;->aj:J

    long-to-int v2, v2

    invoke-static {v1, v2}, Ljava/lang/Math;->min(II)I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/instagram/pendingmedia/model/a;->d(I)Lcom/instagram/pendingmedia/model/a;

    .line 160
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->am:Lcom/instagram/pendingmedia/model/a;

    const/high16 v1, 0x3f00

    invoke-virtual {v0, v1}, Lcom/instagram/pendingmedia/model/a;->a(F)Lcom/instagram/pendingmedia/model/a;

    .line 161
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->am:Lcom/instagram/pendingmedia/model/a;

    const/4 v1, -0x1

    invoke-virtual {v0, v1}, Lcom/instagram/pendingmedia/model/a;->a(I)Lcom/instagram/pendingmedia/model/a;

    .line 164
    :try_start_0
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->ai:Ljava/io/File;

    invoke-static {v0}, Lcom/instagram/creation/video/j/c;->a(Ljava/io/File;)I

    move-result v0

    .line 165
    iget-object v1, p0, Lcom/instagram/creation/video/f/ae;->am:Lcom/instagram/pendingmedia/model/a;

    invoke-virtual {v1, v0}, Lcom/instagram/pendingmedia/model/a;->b(I)Lcom/instagram/pendingmedia/model/a;
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    .line 170
    :goto_0
    iget-object v1, p0, Lcom/instagram/creation/video/f/ae;->am:Lcom/instagram/pendingmedia/model/a;

    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->ak:Ljava/util/List;

    invoke-interface {v0, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/media/MediaMetadataRetriever;

    const/16 v2, 0x12

    invoke-virtual {v0, v2}, Landroid/media/MediaMetadataRetriever;->extractMetadata(I)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v2

    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->ak:Ljava/util/List;

    invoke-interface {v0, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/media/MediaMetadataRetriever;

    const/16 v3, 0x13

    invoke-virtual {v0, v3}, Landroid/media/MediaMetadataRetriever;->extractMetadata(I)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v0

    invoke-virtual {v1, v2, v0}, Lcom/instagram/pendingmedia/model/a;->b(II)V

    .line 175
    return-void

    .line 166
    :catch_0
    move-exception v0

    .line 167
    const-string v1, "VideoImportFragment"

    const-string v2, "Could not retrieve video orientation."

    invoke-static {v1, v2, v0}, Lcom/facebook/e/a/a;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V

    goto :goto_0
.end method

.method private ad()D
    .locals 4

    .prologue
    .line 383
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->d:Lcom/instagram/creation/video/ui/FilmstripScrollView;

    invoke-virtual {v0}, Lcom/instagram/creation/video/ui/FilmstripScrollView;->getScrollX()I

    move-result v0

    int-to-double v0, v0

    iget-wide v2, p0, Lcom/instagram/creation/video/f/ae;->ah:D

    div-double/2addr v0, v2

    const-wide/high16 v2, 0x4000

    mul-double/2addr v0, v2

    const-wide v2, 0x408f400000000000L

    mul-double/2addr v0, v2

    return-wide v0
.end method

.method private ae()D
    .locals 4

    .prologue
    .line 388
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->d:Lcom/instagram/creation/video/ui/FilmstripScrollView;

    invoke-virtual {v0}, Lcom/instagram/creation/video/ui/FilmstripScrollView;->getScrollX()I

    move-result v0

    iget-object v1, p0, Lcom/instagram/creation/video/f/ae;->ae:Lcom/instagram/creation/video/ui/TrimHandleImageView;

    invoke-virtual {v1}, Lcom/instagram/creation/video/ui/TrimHandleImageView;->getWidth()I

    move-result v1

    add-int/2addr v0, v1

    int-to-double v0, v0

    iget-wide v2, p0, Lcom/instagram/creation/video/f/ae;->ah:D

    div-double/2addr v0, v2

    const-wide/high16 v2, 0x4000

    mul-double/2addr v0, v2

    const-wide v2, 0x408f400000000000L

    mul-double/2addr v0, v2

    return-wide v0
.end method

.method private af()D
    .locals 4

    .prologue
    .line 396
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->c:Landroid/widget/LinearLayout;

    invoke-virtual {v0}, Landroid/widget/LinearLayout;->getChildCount()I

    move-result v0

    int-to-double v0, v0

    iget-wide v2, p0, Lcom/instagram/creation/video/f/ae;->ah:D

    mul-double/2addr v0, v2

    return-wide v0
.end method

.method private ag()D
    .locals 4

    .prologue
    .line 400
    invoke-direct {p0}, Lcom/instagram/creation/video/f/ae;->af()D

    move-result-wide v0

    iget-object v2, p0, Lcom/instagram/creation/video/f/ae;->d:Lcom/instagram/creation/video/ui/FilmstripScrollView;

    invoke-virtual {v2}, Lcom/instagram/creation/video/ui/FilmstripScrollView;->getScrollX()I

    move-result v2

    int-to-double v2, v2

    sub-double/2addr v0, v2

    return-wide v0
.end method

.method private ah()D
    .locals 6

    .prologue
    .line 404
    const-wide/high16 v0, 0x4008

    iget-wide v2, p0, Lcom/instagram/creation/video/f/ae;->ah:D

    const-wide/high16 v4, 0x4000

    div-double/2addr v2, v4

    mul-double/2addr v0, v2

    return-wide v0
.end method

.method private ai()V
    .locals 3

    .prologue
    .line 766
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->ae:Lcom/instagram/creation/video/ui/TrimHandleImageView;

    invoke-virtual {v0}, Lcom/instagram/creation/video/ui/TrimHandleImageView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    iget v0, v0, Landroid/view/ViewGroup$LayoutParams;->width:I

    .line 767
    iget-object v1, p0, Lcom/instagram/creation/video/f/ae;->d:Lcom/instagram/creation/video/ui/FilmstripScrollView;

    invoke-virtual {v1}, Lcom/instagram/creation/video/ui/FilmstripScrollView;->getWidth()I

    move-result v1

    .line 768
    iget-object v2, p0, Lcom/instagram/creation/video/f/ae;->e:Landroid/view/View;

    invoke-virtual {v2}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v2

    sub-int v0, v1, v0

    iput v0, v2, Landroid/view/ViewGroup$LayoutParams;->width:I

    .line 769
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->e:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->requestLayout()V

    .line 770
    return-void
.end method

.method private aj()V
    .locals 2

    .prologue
    .line 780
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->Z:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->clearAnimation()V

    .line 781
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->Z:Landroid/view/View;

    iget-object v1, p0, Lcom/instagram/creation/video/f/ae;->ab:Landroid/view/animation/Animation;

    invoke-virtual {v0, v1}, Landroid/view/View;->startAnimation(Landroid/view/animation/Animation;)V

    .line 782
    return-void
.end method

.method private ak()V
    .locals 2

    .prologue
    .line 785
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->Z:Landroid/view/View;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 786
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->Z:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->clearAnimation()V

    .line 787
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->Z:Landroid/view/View;

    iget-object v1, p0, Lcom/instagram/creation/video/f/ae;->aa:Landroid/view/animation/Animation;

    invoke-virtual {v0, v1}, Landroid/view/View;->startAnimation(Landroid/view/animation/Animation;)V

    .line 788
    return-void
.end method

.method static synthetic b(Lcom/instagram/creation/video/f/ae;)Lcom/instagram/creation/video/d/a;
    .locals 1
    .parameter

    .prologue
    .line 70
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->ap:Lcom/instagram/creation/video/d/a;

    return-object v0
.end method

.method static synthetic c(Lcom/instagram/creation/video/f/ae;)Z
    .locals 1
    .parameter

    .prologue
    .line 70
    iget-boolean v0, p0, Lcom/instagram/creation/video/f/ae;->af:Z

    return v0
.end method

.method static synthetic d(Lcom/instagram/creation/video/f/ae;)D
    .locals 2
    .parameter

    .prologue
    .line 70
    invoke-direct {p0}, Lcom/instagram/creation/video/f/ae;->ae()D

    move-result-wide v0

    return-wide v0
.end method

.method static synthetic e(Lcom/instagram/creation/video/f/ae;)Lcom/instagram/pendingmedia/model/a;
    .locals 1
    .parameter

    .prologue
    .line 70
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->am:Lcom/instagram/pendingmedia/model/a;

    return-object v0
.end method

.method static synthetic f(Lcom/instagram/creation/video/f/ae;)Ljava/io/File;
    .locals 1
    .parameter

    .prologue
    .line 70
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->ai:Ljava/io/File;

    return-object v0
.end method

.method private f(I)V
    .locals 3
    .parameter

    .prologue
    .line 470
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->c:Landroid/widget/LinearLayout;

    invoke-virtual {v0, p1}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    .line 472
    if-eqz v0, :cond_0

    invoke-virtual {v0}, Landroid/widget/ImageView;->getDrawable()Landroid/graphics/drawable/Drawable;

    move-result-object v1

    if-nez v1, :cond_0

    .line 473
    iget-object v1, p0, Lcom/instagram/creation/video/f/ae;->an:Ljava/util/concurrent/ThreadPoolExecutor;

    new-instance v2, Lcom/instagram/creation/video/f/aj;

    invoke-direct {v2, p0, v0, p1}, Lcom/instagram/creation/video/f/aj;-><init>(Lcom/instagram/creation/video/f/ae;Landroid/widget/ImageView;I)V

    invoke-virtual {v1, v2}, Ljava/util/concurrent/ThreadPoolExecutor;->execute(Ljava/lang/Runnable;)V

    .line 480
    :cond_0
    return-void
.end method

.method private g(I)I
    .locals 4
    .parameter

    .prologue
    .line 774
    invoke-direct {p0}, Lcom/instagram/creation/video/f/ae;->af()D

    move-result-wide v0

    iget v2, p0, Lcom/instagram/creation/video/f/ae;->ac:I

    mul-int/lit8 v2, v2, 0x2

    int-to-double v2, v2

    sub-double/2addr v0, v2

    .line 775
    int-to-double v2, p1

    mul-double/2addr v0, v2

    iget-wide v2, p0, Lcom/instagram/creation/video/f/ae;->aj:J

    long-to-double v2, v2

    div-double/2addr v0, v2

    double-to-int v0, v0

    invoke-direct {p0, v0}, Lcom/instagram/creation/video/f/ae;->h(I)V

    .line 776
    return p1
.end method

.method static synthetic g(Lcom/instagram/creation/video/f/ae;)J
    .locals 2
    .parameter

    .prologue
    .line 70
    iget-wide v0, p0, Lcom/instagram/creation/video/f/ae;->aj:J

    return-wide v0
.end method

.method static synthetic h(Lcom/instagram/creation/video/f/ae;)D
    .locals 2
    .parameter

    .prologue
    .line 70
    iget-wide v0, p0, Lcom/instagram/creation/video/f/ae;->ah:D

    return-wide v0
.end method

.method private h(I)V
    .locals 3
    .parameter

    .prologue
    .line 791
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->Z:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    check-cast v0, Landroid/widget/FrameLayout$LayoutParams;

    iget-object v1, p0, Lcom/instagram/creation/video/f/ae;->Z:Landroid/view/View;

    invoke-virtual {v1}, Landroid/view/View;->getPaddingLeft()I

    move-result v1

    sub-int v1, p1, v1

    iget v2, p0, Lcom/instagram/creation/video/f/ae;->ac:I

    add-int/2addr v1, v2

    iput v1, v0, Landroid/widget/FrameLayout$LayoutParams;->leftMargin:I

    .line 793
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->Z:Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->requestLayout()V

    .line 794
    return-void
.end method

.method static synthetic i(Lcom/instagram/creation/video/f/ae;)D
    .locals 2
    .parameter

    .prologue
    .line 70
    iget-wide v0, p0, Lcom/instagram/creation/video/f/ae;->ag:D

    return-wide v0
.end method

.method static synthetic j(Lcom/instagram/creation/video/f/ae;)Landroid/widget/LinearLayout;
    .locals 1
    .parameter

    .prologue
    .line 70
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->c:Landroid/widget/LinearLayout;

    return-object v0
.end method

.method static synthetic k(Lcom/instagram/creation/video/f/ae;)Landroid/view/View;
    .locals 1
    .parameter

    .prologue
    .line 70
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->f:Landroid/view/View;

    return-object v0
.end method

.method static synthetic l(Lcom/instagram/creation/video/f/ae;)D
    .locals 2
    .parameter

    .prologue
    .line 70
    invoke-direct {p0}, Lcom/instagram/creation/video/f/ae;->af()D

    move-result-wide v0

    return-wide v0
.end method

.method static synthetic m(Lcom/instagram/creation/video/f/ae;)D
    .locals 2
    .parameter

    .prologue
    .line 70
    invoke-direct {p0}, Lcom/instagram/creation/video/f/ae;->ah()D

    move-result-wide v0

    return-wide v0
.end method

.method static synthetic n(Lcom/instagram/creation/video/f/ae;)Landroid/view/View;
    .locals 1
    .parameter

    .prologue
    .line 70
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->g:Landroid/view/View;

    return-object v0
.end method

.method static synthetic o(Lcom/instagram/creation/video/f/ae;)D
    .locals 2
    .parameter

    .prologue
    .line 70
    invoke-direct {p0}, Lcom/instagram/creation/video/f/ae;->ag()D

    move-result-wide v0

    return-wide v0
.end method

.method static synthetic p(Lcom/instagram/creation/video/f/ae;)V
    .locals 0
    .parameter

    .prologue
    .line 70
    invoke-direct {p0}, Lcom/instagram/creation/video/f/ae;->ai()V

    return-void
.end method

.method static synthetic q(Lcom/instagram/creation/video/f/ae;)Lcom/instagram/creation/video/ui/w;
    .locals 1
    .parameter

    .prologue
    .line 70
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->i:Lcom/instagram/creation/video/ui/w;

    return-object v0
.end method

.method static synthetic r(Lcom/instagram/creation/video/f/ae;)Lcom/instagram/creation/video/ui/LivePreviewTextureView;
    .locals 1
    .parameter

    .prologue
    .line 70
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->b:Lcom/instagram/creation/video/ui/LivePreviewTextureView;

    return-object v0
.end method


# virtual methods
.method public X()V
    .locals 0

    .prologue
    .line 574
    invoke-direct {p0}, Lcom/instagram/creation/video/f/ae;->aj()V

    .line 575
    return-void
.end method

.method public Y()V
    .locals 1

    .prologue
    .line 499
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->ap:Lcom/instagram/creation/video/d/a;

    invoke-virtual {v0}, Lcom/instagram/creation/video/d/a;->a()V

    .line 500
    return-void
.end method

.method public a(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
    .locals 7
    .parameter
    .parameter
    .parameter

    .prologue
    const/4 v6, 0x0

    .line 180
    const-string v0, "VideoImportFragment"

    const-string v1, "onCreateView"

    invoke-static {v0, v1}, Lcom/facebook/e/a/a;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 181
    sget v0, Lcom/facebook/ax;->fragment_video_import:I

    const/4 v1, 0x0

    invoke-virtual {p1, v0, p2, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v1

    .line 183
    new-instance v0, Lcom/instagram/creation/video/ui/a/a;

    invoke-direct {v0}, Lcom/instagram/creation/video/ui/a/a;-><init>()V

    sget v2, Lcom/facebook/aw;->play_button:I

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    invoke-virtual {v0, v2}, Lcom/instagram/creation/video/ui/a/a;->a(Landroid/view/View;)Lcom/instagram/creation/video/ui/a/a;

    move-result-object v0

    sget v2, Lcom/facebook/aw;->seek_frame_indicator:I

    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    invoke-virtual {v0, v2}, Lcom/instagram/creation/video/ui/a/a;->b(Landroid/view/View;)Lcom/instagram/creation/video/ui/a/a;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/creation/video/f/ae;->aq:Lcom/instagram/creation/video/ui/a/a;

    .line 187
    sget v0, Lcom/facebook/aw;->textureview:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/creation/video/ui/LivePreviewTextureView;

    iput-object v0, p0, Lcom/instagram/creation/video/f/ae;->b:Lcom/instagram/creation/video/ui/LivePreviewTextureView;

    .line 188
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->b:Lcom/instagram/creation/video/ui/LivePreviewTextureView;

    invoke-virtual {v0, p0}, Lcom/instagram/creation/video/ui/LivePreviewTextureView;->setDelegate(Lcom/instagram/creation/video/ui/d;)V

    .line 192
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/ae;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/instagram/n/k;->a(Landroid/content/Context;)I

    move-result v0

    int-to-double v2, v0

    const-wide/high16 v4, 0x401e

    div-double/2addr v2, v4

    iput-wide v2, p0, Lcom/instagram/creation/video/f/ae;->ah:D

    .line 193
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/ae;->l()Landroid/content/res/Resources;

    move-result-object v0

    sget v2, Lcom/facebook/au;->keyframe_height:I

    invoke-virtual {v0, v2}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v0

    int-to-double v2, v0

    iput-wide v2, p0, Lcom/instagram/creation/video/f/ae;->ag:D

    .line 195
    sget v0, Lcom/facebook/aw;->filmstrip_keyframes_holder:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/instagram/creation/video/f/ae;->c:Landroid/widget/LinearLayout;

    .line 197
    sget v0, Lcom/facebook/aw;->filmstrip_scrollview:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/creation/video/ui/FilmstripScrollView;

    iput-object v0, p0, Lcom/instagram/creation/video/f/ae;->d:Lcom/instagram/creation/video/ui/FilmstripScrollView;

    .line 199
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->d:Lcom/instagram/creation/video/ui/FilmstripScrollView;

    invoke-virtual {v0, p0}, Lcom/instagram/creation/video/ui/FilmstripScrollView;->a(Lcom/instagram/creation/video/ui/c;)V

    .line 200
    sget v0, Lcom/facebook/aw;->trim_handle:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/creation/video/ui/TrimHandleImageView;

    iput-object v0, p0, Lcom/instagram/creation/video/f/ae;->ae:Lcom/instagram/creation/video/ui/TrimHandleImageView;

    .line 201
    sget v0, Lcom/facebook/aw;->filmstrip_dimmer:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/creation/video/f/ae;->e:Landroid/view/View;

    .line 202
    sget v0, Lcom/facebook/aw;->filmstrip_play_indicator:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/creation/video/f/ae;->Z:Landroid/view/View;

    .line 203
    sget v0, Lcom/facebook/aw;->filmstrip_overlay:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/creation/video/f/ae;->f:Landroid/view/View;

    .line 204
    sget v0, Lcom/facebook/aw;->filmstrip_scrollview_container:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/creation/video/f/ae;->g:Landroid/view/View;

    .line 206
    new-instance v0, Landroid/view/GestureDetector;

    invoke-virtual {p0}, Lcom/instagram/creation/video/f/ae;->getContext()Landroid/content/Context;

    move-result-object v2

    new-instance v3, Lcom/instagram/creation/video/f/ao;

    invoke-direct {v3, p0, v6}, Lcom/instagram/creation/video/f/ao;-><init>(Lcom/instagram/creation/video/f/ae;Lcom/instagram/creation/video/f/af;)V

    invoke-direct {v0, v2, v3}, Landroid/view/GestureDetector;-><init>(Landroid/content/Context;Landroid/view/GestureDetector$OnGestureListener;)V

    .line 210
    iget-object v2, p0, Lcom/instagram/creation/video/f/ae;->ae:Lcom/instagram/creation/video/ui/TrimHandleImageView;

    new-instance v3, Lcom/instagram/creation/video/f/af;

    invoke-direct {v3, p0, v0}, Lcom/instagram/creation/video/f/af;-><init>(Lcom/instagram/creation/video/f/ae;Landroid/view/GestureDetector;)V

    invoke-virtual {v2, v3}, Lcom/instagram/creation/video/ui/TrimHandleImageView;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    .line 256
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->ae:Lcom/instagram/creation/video/ui/TrimHandleImageView;

    invoke-virtual {v0, p0}, Lcom/instagram/creation/video/ui/TrimHandleImageView;->setTouchDelegate(Lcom/instagram/creation/video/ui/u;)V

    .line 258
    new-instance v0, Landroid/view/GestureDetector;

    invoke-virtual {p0}, Lcom/instagram/creation/video/f/ae;->getContext()Landroid/content/Context;

    move-result-object v2

    new-instance v3, Lcom/instagram/creation/video/f/al;

    invoke-direct {v3, p0, v6}, Lcom/instagram/creation/video/f/al;-><init>(Lcom/instagram/creation/video/f/ae;Lcom/instagram/creation/video/f/af;)V

    invoke-direct {v0, v2, v3}, Landroid/view/GestureDetector;-><init>(Landroid/content/Context;Landroid/view/GestureDetector$OnGestureListener;)V

    .line 261
    iget-object v2, p0, Lcom/instagram/creation/video/f/ae;->b:Lcom/instagram/creation/video/ui/LivePreviewTextureView;

    new-instance v3, Lcom/instagram/creation/video/f/ag;

    invoke-direct {v3, p0, v0}, Lcom/instagram/creation/video/f/ag;-><init>(Lcom/instagram/creation/video/f/ae;Landroid/view/GestureDetector;)V

    invoke-virtual {v2, v3}, Lcom/instagram/creation/video/ui/LivePreviewTextureView;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    .line 269
    return-object v1
.end method

.method public a()Ljava/lang/String;
    .locals 2

    .prologue
    .line 331
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/ae;->l()Landroid/content/res/Resources;

    move-result-object v0

    sget v1, Lcom/facebook/ba;->video_import:I

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public a(Landroid/graphics/Rect;)V
    .locals 5
    .parameter

    .prologue
    .line 718
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/ae;->l()Landroid/content/res/Resources;

    move-result-object v0

    sget v1, Lcom/facebook/au;->trimhandle_bounds_y:I

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v2

    .line 720
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->ae:Lcom/instagram/creation/video/ui/TrimHandleImageView;

    invoke-virtual {v0}, Lcom/instagram/creation/video/ui/TrimHandleImageView;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    check-cast v0, Landroid/view/View;

    .line 721
    invoke-virtual {v0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;

    move-result-object v1

    check-cast v1, Landroid/view/View;

    .line 723
    iget v3, p1, Landroid/graphics/Rect;->top:I

    invoke-virtual {v0}, Landroid/view/View;->getTop()I

    move-result v4

    sub-int/2addr v4, v2

    add-int/2addr v3, v4

    iput v3, p1, Landroid/graphics/Rect;->top:I

    .line 724
    iget v3, p1, Landroid/graphics/Rect;->left:I

    invoke-virtual {v0}, Landroid/view/View;->getLeft()I

    move-result v4

    add-int/2addr v3, v4

    iput v3, p1, Landroid/graphics/Rect;->left:I

    .line 725
    iget v3, p1, Landroid/graphics/Rect;->bottom:I

    invoke-virtual {v0}, Landroid/view/View;->getTop()I

    move-result v4

    add-int/2addr v2, v4

    add-int/2addr v2, v3

    iput v2, p1, Landroid/graphics/Rect;->bottom:I

    .line 726
    iget v2, p1, Landroid/graphics/Rect;->right:I

    invoke-virtual {v0}, Landroid/view/View;->getLeft()I

    move-result v0

    add-int/2addr v0, v2

    iput v0, p1, Landroid/graphics/Rect;->right:I

    .line 728
    new-instance v0, Landroid/view/TouchDelegate;

    iget-object v2, p0, Lcom/instagram/creation/video/f/ae;->ae:Lcom/instagram/creation/video/ui/TrimHandleImageView;

    invoke-direct {v0, p1, v2}, Landroid/view/TouchDelegate;-><init>(Landroid/graphics/Rect;Landroid/view/View;)V

    invoke-virtual {v1, v0}, Landroid/view/View;->setTouchDelegate(Landroid/view/TouchDelegate;)V

    .line 729
    return-void
.end method

.method public a(Landroid/graphics/SurfaceTexture;)V
    .locals 1
    .parameter

    .prologue
    .line 493
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->ap:Lcom/instagram/creation/video/d/a;

    invoke-virtual {v0}, Lcom/instagram/creation/video/d/a;->i()V

    .line 494
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/instagram/creation/video/f/ae;->ap:Lcom/instagram/creation/video/d/a;

    .line 495
    return-void
.end method

.method public a(Landroid/graphics/SurfaceTexture;I)V
    .locals 2
    .parameter
    .parameter

    .prologue
    .line 484
    iget-object v1, p0, Lcom/instagram/creation/video/f/ae;->aq:Lcom/instagram/creation/video/ui/a/a;

    invoke-virtual {p0}, Lcom/instagram/creation/video/f/ae;->j()Landroid/support/v4/app/j;

    move-result-object v0

    check-cast v0, Lcom/instagram/creation/video/i/a;

    invoke-static {v1, v0}, Lcom/instagram/creation/video/d/a;->a(Lcom/instagram/creation/video/d/b;Lcom/instagram/creation/video/i/a;)Lcom/instagram/creation/video/d/a;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/creation/video/f/ae;->ap:Lcom/instagram/creation/video/d/a;

    .line 486
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->ap:Lcom/instagram/creation/video/d/a;

    iget-object v1, p0, Lcom/instagram/creation/video/f/ae;->am:Lcom/instagram/pendingmedia/model/a;

    invoke-virtual {v0, v1}, Lcom/instagram/creation/video/d/a;->a(Lcom/instagram/pendingmedia/model/a;)V

    .line 487
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->ap:Lcom/instagram/creation/video/d/a;

    invoke-virtual {v0, p0}, Lcom/instagram/creation/video/d/a;->a(Lcom/instagram/creation/video/d/c;)V

    .line 488
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->ap:Lcom/instagram/creation/video/d/a;

    invoke-virtual {v0, p1, p2}, Lcom/instagram/creation/video/d/a;->a(Landroid/graphics/SurfaceTexture;I)V

    .line 489
    return-void
.end method

.method public a(Landroid/os/Bundle;)V
    .locals 6
    .parameter

    .prologue
    .line 126
    invoke-super {p0, p1}, Lcom/instagram/creation/video/f/ab;->a(Landroid/os/Bundle;)V

    .line 128
    new-instance v0, Ljava/io/File;

    invoke-virtual {p0}, Lcom/instagram/creation/video/f/ae;->i()Landroid/os/Bundle;

    move-result-object v1

    const-string v2, "ARGUMENT_IMPORT_PATH"

    invoke-virtual {v1, v2}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    iput-object v0, p0, Lcom/instagram/creation/video/f/ae;->ai:Ljava/io/File;

    .line 129
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/ae;->i()Landroid/os/Bundle;

    move-result-object v0

    const-string v1, "ARGUMENT_IMPORT_DURATION_MS"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->getLong(Ljava/lang/String;)J

    move-result-wide v0

    iput-wide v0, p0, Lcom/instagram/creation/video/f/ae;->aj:J

    .line 131
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/ae;->l()Landroid/content/res/Resources;

    move-result-object v0

    sget v1, Lcom/facebook/au;->trim_overlay_corner_radius:I

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v0

    iput v0, p0, Lcom/instagram/creation/video/f/ae;->h:I

    .line 132
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/instagram/creation/video/f/ae;->ak:Ljava/util/List;

    .line 134
    const/4 v0, 0x0

    :goto_0
    const/4 v1, 0x1

    if-ge v0, v1, :cond_0

    .line 135
    new-instance v1, Landroid/media/MediaMetadataRetriever;

    invoke-direct {v1}, Landroid/media/MediaMetadataRetriever;-><init>()V

    .line 136
    iget-object v2, p0, Lcom/instagram/creation/video/f/ae;->ai:Ljava/io/File;

    invoke-virtual {v2}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/media/MediaMetadataRetriever;->setDataSource(Ljava/lang/String;)V

    .line 137
    iget-object v2, p0, Lcom/instagram/creation/video/f/ae;->ak:Ljava/util/List;

    invoke-interface {v2, v0, v1}, Ljava/util/List;->add(ILjava/lang/Object;)V

    .line 134
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .line 140
    :cond_0
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    .line 141
    invoke-direct {p0}, Lcom/instagram/creation/video/f/ae;->ac()V

    .line 142
    const-string v2, "VideoImportFragment"

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "Took us "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v4

    sub-long v0, v4, v0

    invoke-virtual {v3, v0, v1}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "to set params"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v2, v0}, Lcom/facebook/e/a/a;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 145
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/ae;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/j;->getWindow()Landroid/view/Window;

    move-result-object v0

    const/16 v1, 0x400

    invoke-virtual {v0, v1}, Landroid/view/Window;->addFlags(I)V

    .line 147
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/ae;->getContext()Landroid/content/Context;

    move-result-object v0

    sget v1, Lcom/facebook/ar;->import_play_fade_in:I

    invoke-static {v0, v1}, Landroid/view/animation/AnimationUtils;->loadAnimation(Landroid/content/Context;I)Landroid/view/animation/Animation;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/creation/video/f/ae;->aa:Landroid/view/animation/Animation;

    .line 149
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/ae;->getContext()Landroid/content/Context;

    move-result-object v0

    sget v1, Lcom/facebook/ar;->import_play_fade_out:I

    invoke-static {v0, v1}, Landroid/view/animation/AnimationUtils;->loadAnimation(Landroid/content/Context;I)Landroid/view/animation/Animation;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/creation/video/f/ae;->ab:Landroid/view/animation/Animation;

    .line 151
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/ae;->l()Landroid/content/res/Resources;

    move-result-object v0

    sget v1, Lcom/facebook/au;->trim_play_indicator_min_padding:I

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v0

    iput v0, p0, Lcom/instagram/creation/video/f/ae;->ac:I

    .line 153
    return-void
.end method

.method public a(Landroid/view/View;)V
    .locals 5
    .parameter

    .prologue
    .line 341
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/ae;->j()Landroid/support/v4/app/j;

    move-result-object v0

    check-cast v0, Lcom/instagram/creation/video/i/a;

    iget-object v1, p0, Lcom/instagram/creation/video/f/ae;->al:Lcom/instagram/pendingmedia/model/c;

    invoke-interface {v0, v1}, Lcom/instagram/creation/video/i/a;->b(Lcom/instagram/pendingmedia/model/c;)V

    .line 342
    const-string v0, "VideoImportFragment"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "Trimming between "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-direct {p0}, Lcom/instagram/creation/video/f/ae;->ad()D

    move-result-wide v2

    invoke-virtual {v1, v2, v3}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, " and "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-direct {p0}, Lcom/instagram/creation/video/f/ae;->ae()D

    move-result-wide v2

    invoke-virtual {v1, v2, v3}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/facebook/e/a/a;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 344
    new-instance v0, Landroid/os/Bundle;

    invoke-direct {v0}, Landroid/os/Bundle;-><init>()V

    .line 345
    const-string v1, "pendingMediaKey"

    iget-object v2, p0, Lcom/instagram/creation/video/f/ae;->al:Lcom/instagram/pendingmedia/model/c;

    invoke-virtual {v2}, Lcom/instagram/pendingmedia/model/c;->a()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 347
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/ae;->i()Landroid/os/Bundle;

    move-result-object v1

    if-eqz v1, :cond_0

    .line 348
    const-string v1, "directShare"

    invoke-virtual {p0}, Lcom/instagram/creation/video/f/ae;->i()Landroid/os/Bundle;

    move-result-object v2

    const-string v3, "directShare"

    const/4 v4, 0x0

    invoke-virtual {v2, v3, v4}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;Z)Z

    move-result v2

    invoke-virtual {v0, v1, v2}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V

    .line 354
    :cond_0
    new-instance v1, Lcom/instagram/e/b/a/a;

    invoke-virtual {p0}, Lcom/instagram/creation/video/f/ae;->m()Landroid/support/v4/app/r;

    move-result-object v2

    invoke-direct {v1, v2}, Lcom/instagram/e/b/a/a;-><init>(Landroid/support/v4/app/r;)V

    new-instance v2, Lcom/instagram/creation/video/f/x;

    invoke-direct {v2}, Lcom/instagram/creation/video/f/x;-><init>()V

    invoke-virtual {v1, v2, v0}, Lcom/instagram/e/b/a/a;->a(Landroid/support/v4/app/Fragment;Landroid/os/Bundle;)Lcom/instagram/e/b/a/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/e/b/a/a;->e()V

    .line 355
    return-void
.end method

.method public a(Landroid/view/View;Landroid/os/Bundle;)V
    .locals 2
    .parameter
    .parameter

    .prologue
    .line 274
    invoke-super {p0, p1, p2}, Lcom/instagram/creation/video/f/ab;->a(Landroid/view/View;Landroid/os/Bundle;)V

    .line 276
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/ae;->j()Landroid/support/v4/app/j;

    move-result-object v0

    check-cast v0, Lcom/instagram/pendingmedia/model/f;

    new-instance v1, Lcom/instagram/creation/video/f/ah;

    invoke-direct {v1, p0}, Lcom/instagram/creation/video/f/ah;-><init>(Lcom/instagram/creation/video/f/ae;)V

    invoke-interface {v0, v1}, Lcom/instagram/pendingmedia/model/f;->a(Ljava/lang/Runnable;)V

    .line 295
    return-void
.end method

.method public aa()V
    .locals 1

    .prologue
    .line 579
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->ap:Lcom/instagram/creation/video/d/a;

    invoke-virtual {v0}, Lcom/instagram/creation/video/d/a;->b()V

    .line 580
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->d:Lcom/instagram/creation/video/ui/FilmstripScrollView;

    invoke-virtual {v0}, Lcom/instagram/creation/video/ui/FilmstripScrollView;->getScrollX()I

    move-result v0

    invoke-direct {p0, v0}, Lcom/instagram/creation/video/f/ae;->h(I)V

    .line 581
    invoke-direct {p0}, Lcom/instagram/creation/video/f/ae;->ak()V

    .line 582
    return-void
.end method

.method public ab()V
    .locals 6

    .prologue
    .line 797
    sget-object v0, Lcom/instagram/creation/video/ui/x;->c:Lcom/instagram/creation/video/ui/x;

    .line 798
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/ae;->j()Landroid/support/v4/app/j;

    move-result-object v1

    invoke-virtual {v1}, Landroid/support/v4/app/j;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v1

    const/16 v2, 0xe

    invoke-static {v1, v2}, Lcom/instagram/n/k;->a(Landroid/util/DisplayMetrics;I)F

    move-result v1

    float-to-int v1, v1

    .line 799
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/ae;->l()Landroid/content/res/Resources;

    move-result-object v2

    sget v3, Lcom/facebook/au;->nux_min_video_height_from_bottom:I

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v2

    .line 800
    const/16 v3, 0x53

    invoke-direct {p0}, Lcom/instagram/creation/video/f/ae;->ah()D

    move-result-wide v4

    double-to-int v4, v4

    sub-int v1, v4, v1

    invoke-direct {p0, v0, v3, v1, v2}, Lcom/instagram/creation/video/f/ae;->a(Lcom/instagram/creation/video/ui/x;III)V

    .line 804
    return-void
.end method

.method public b(Landroid/view/View;)V
    .locals 1
    .parameter

    .prologue
    .line 336
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/ae;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/j;->onBackPressed()V

    .line 337
    return-void
.end method

.method public b_(I)V
    .locals 0
    .parameter

    .prologue
    .line 592
    invoke-direct {p0, p1}, Lcom/instagram/creation/video/f/ae;->g(I)I

    .line 593
    return-void
.end method

.method public c()V
    .locals 0

    .prologue
    .line 597
    invoke-direct {p0}, Lcom/instagram/creation/video/f/ae;->aj()V

    .line 598
    return-void
.end method

.method public d_()Ljava/lang/String;
    .locals 1

    .prologue
    .line 858
    const-string v0, "video_import"

    return-object v0
.end method

.method public e(I)V
    .locals 6
    .parameter

    .prologue
    .line 539
    if-ltz p1, :cond_2

    sget-object v0, Lcom/instagram/creation/video/f/an;->b:Lcom/instagram/creation/video/f/an;

    :goto_0
    invoke-direct {p0, v0}, Lcom/instagram/creation/video/f/ae;->a(Lcom/instagram/creation/video/f/an;)V

    .line 541
    invoke-direct {p0}, Lcom/instagram/creation/video/f/ae;->ag()D

    move-result-wide v0

    .line 542
    invoke-direct {p0}, Lcom/instagram/creation/video/f/ae;->ah()D

    move-result-wide v2

    .line 544
    invoke-static {}, Lcom/instagram/m/b/a;->a()Lcom/instagram/m/b/a;

    move-result-object v4

    invoke-virtual {v4}, Lcom/instagram/m/b/a;->n()Z

    move-result v4

    if-nez v4, :cond_0

    .line 545
    invoke-static {}, Lcom/instagram/m/b/a;->a()Lcom/instagram/m/b/a;

    move-result-object v4

    const/4 v5, 0x1

    invoke-virtual {v4, v5}, Lcom/instagram/m/b/a;->g(Z)Z

    .line 548
    :cond_0
    cmpl-double v0, v0, v2

    if-lez v0, :cond_3

    .line 549
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->am:Lcom/instagram/pendingmedia/model/a;

    invoke-direct {p0}, Lcom/instagram/creation/video/f/ae;->ad()D

    move-result-wide v1

    double-to-int v1, v1

    invoke-virtual {v0, v1}, Lcom/instagram/pendingmedia/model/a;->c(I)Lcom/instagram/pendingmedia/model/a;

    .line 557
    :goto_1
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->d:Lcom/instagram/creation/video/ui/FilmstripScrollView;

    invoke-virtual {v0}, Lcom/instagram/creation/video/ui/FilmstripScrollView;->getScrollX()I

    move-result v0

    int-to-long v0, v0

    .line 558
    invoke-direct {p0}, Lcom/instagram/creation/video/f/ae;->af()D

    move-result-wide v2

    long-to-double v0, v0

    sub-double v0, v2, v0

    double-to-int v1, v0

    .line 559
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->ae:Lcom/instagram/creation/video/ui/TrimHandleImageView;

    invoke-virtual {v0}, Lcom/instagram/creation/video/ui/TrimHandleImageView;->getWidth()I

    move-result v0

    if-le v0, v1, :cond_1

    .line 560
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->ae:Lcom/instagram/creation/video/ui/TrimHandleImageView;

    invoke-virtual {v0}, Lcom/instagram/creation/video/ui/TrimHandleImageView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout$LayoutParams;

    iput-object v0, p0, Lcom/instagram/creation/video/f/ae;->ad:Landroid/widget/RelativeLayout$LayoutParams;

    .line 561
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->ad:Landroid/widget/RelativeLayout$LayoutParams;

    iput v1, v0, Landroid/widget/RelativeLayout$LayoutParams;->width:I

    .line 564
    :cond_1
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->am:Lcom/instagram/pendingmedia/model/a;

    invoke-direct {p0}, Lcom/instagram/creation/video/f/ae;->ae()D

    move-result-wide v1

    double-to-int v1, v1

    invoke-virtual {v0, v1}, Lcom/instagram/pendingmedia/model/a;->d(I)Lcom/instagram/pendingmedia/model/a;

    .line 565
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->ap:Lcom/instagram/creation/video/d/a;

    invoke-virtual {v0}, Lcom/instagram/creation/video/d/a;->c()V

    .line 567
    invoke-direct {p0}, Lcom/instagram/creation/video/f/ae;->ai()V

    .line 569
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->d:Lcom/instagram/creation/video/ui/FilmstripScrollView;

    invoke-virtual {v0}, Lcom/instagram/creation/video/ui/FilmstripScrollView;->getScrollX()I

    move-result v0

    invoke-direct {p0, v0}, Lcom/instagram/creation/video/f/ae;->h(I)V

    .line 570
    return-void

    .line 539
    :cond_2
    sget-object v0, Lcom/instagram/creation/video/f/an;->a:Lcom/instagram/creation/video/f/an;

    goto :goto_0

    .line 551
    :cond_3
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->am:Lcom/instagram/pendingmedia/model/a;

    invoke-direct {p0}, Lcom/instagram/creation/video/f/ae;->ae()D

    move-result-wide v1

    double-to-int v1, v1

    add-int/lit16 v1, v1, -0xbb8

    invoke-virtual {v0, v1}, Lcom/instagram/pendingmedia/model/a;->c(I)Lcom/instagram/pendingmedia/model/a;

    .line 553
    invoke-virtual {p0}, Lcom/instagram/creation/video/f/ae;->ab()V

    goto :goto_1
.end method

.method public g_()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    .line 365
    invoke-super {p0}, Lcom/instagram/creation/video/f/ab;->g_()V

    .line 367
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->d:Lcom/instagram/creation/video/ui/FilmstripScrollView;

    invoke-virtual {v0}, Lcom/instagram/creation/video/ui/FilmstripScrollView;->a()V

    .line 369
    iput-object v1, p0, Lcom/instagram/creation/video/f/ae;->b:Lcom/instagram/creation/video/ui/LivePreviewTextureView;

    .line 370
    iput-object v1, p0, Lcom/instagram/creation/video/f/ae;->c:Landroid/widget/LinearLayout;

    .line 371
    iput-object v1, p0, Lcom/instagram/creation/video/f/ae;->d:Lcom/instagram/creation/video/ui/FilmstripScrollView;

    .line 372
    iput-object v1, p0, Lcom/instagram/creation/video/f/ae;->g:Landroid/view/View;

    .line 373
    iput-object v1, p0, Lcom/instagram/creation/video/f/ae;->e:Landroid/view/View;

    .line 374
    iput-object v1, p0, Lcom/instagram/creation/video/f/ae;->Z:Landroid/view/View;

    .line 375
    iput-object v1, p0, Lcom/instagram/creation/video/f/ae;->f:Landroid/view/View;

    .line 376
    iput-object v1, p0, Lcom/instagram/creation/video/f/ae;->ae:Lcom/instagram/creation/video/ui/TrimHandleImageView;

    .line 377
    iput-object v1, p0, Lcom/instagram/creation/video/f/ae;->ad:Landroid/widget/RelativeLayout$LayoutParams;

    .line 378
    iput-object v1, p0, Lcom/instagram/creation/video/f/ae;->aq:Lcom/instagram/creation/video/ui/a/a;

    .line 379
    return-void
.end method

.method public o_()V
    .locals 1

    .prologue
    .line 586
    invoke-direct {p0}, Lcom/instagram/creation/video/f/ae;->ak()V

    .line 587
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->am:Lcom/instagram/pendingmedia/model/a;

    invoke-virtual {v0}, Lcom/instagram/pendingmedia/model/a;->f()I

    move-result v0

    invoke-direct {p0, v0}, Lcom/instagram/creation/video/f/ae;->g(I)I

    .line 588
    return-void
.end method

.method public w()V
    .locals 1

    .prologue
    .line 323
    invoke-super {p0}, Lcom/instagram/creation/video/f/ab;->w()V

    .line 324
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->ap:Lcom/instagram/creation/video/d/a;

    if-eqz v0, :cond_0

    .line 325
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->ap:Lcom/instagram/creation/video/d/a;

    invoke-virtual {v0}, Lcom/instagram/creation/video/d/a;->h()V

    .line 327
    :cond_0
    return-void
.end method

.method public x()V
    .locals 1

    .prologue
    .line 306
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->ap:Lcom/instagram/creation/video/d/a;

    if-eqz v0, :cond_0

    .line 307
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->ap:Lcom/instagram/creation/video/d/a;

    invoke-virtual {v0}, Lcom/instagram/creation/video/d/a;->g()V

    .line 309
    :cond_0
    invoke-super {p0}, Lcom/instagram/creation/video/f/ab;->x()V

    .line 310
    return-void
.end method

.method public y()V
    .locals 1

    .prologue
    .line 359
    invoke-super {p0}, Lcom/instagram/creation/video/f/ab;->y()V

    .line 360
    iget-object v0, p0, Lcom/instagram/creation/video/f/ae;->an:Ljava/util/concurrent/ThreadPoolExecutor;

    invoke-virtual {v0}, Ljava/util/concurrent/ThreadPoolExecutor;->getQueue()Ljava/util/concurrent/BlockingQueue;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/concurrent/BlockingQueue;->clear()V

    .line 361
    return-void
.end method
